package com.hb.trans.mvp.contract

import android.location.Location
import com.basiclib.inter.IModel
import com.basiclib.inter.IMvpView
import com.hb.trans.bean.Base
import com.hb.trans.bean.Geocoder
import com.hb.trans.bean.Update
import io.reactivex.Observable

interface MainContract {
    interface View : IMvpView {
        fun setGetById(data: Update?)
        fun setCurrentLocationCity(province: String, city: String, district: String)
    }

    interface Model : IModel {
        fun getById(): Observable<Base<Update>>
        fun getLocationInfo(location: Location): Observable<Geocoder>
    }
}